﻿using System.Web.Mvc;

namespace BankApp.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to iBank!";
            ViewBag.EnsureSecurity = true;

            return View();
        }

        public ActionResult Error(string msg)
        {
            ViewBag.Error = msg;
            return View();
        }
    }
}
